package com.xuecheng.content.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.api.contant.model.dto.CourseTeacherDTO;
import com.xuecheng.content.entity.CourseTeacher;

import java.util.List;

/**
 * <p>
 * 课程-教师关系表 服务类
 * </p>
 *
 * @author itcast
 * @since 2022-01-28
 */
public interface CourseTeacherService extends IService<CourseTeacher> {


    void removeCourseTeacher(Long courseBaseId, Long teacherId, Long companyId);
    /**
     * 添加课程教师基本信息
     * @param courseTeacherDTO 课程教师dto封装类
     * @return 返回DTO数据给前端
     */
    CourseTeacherDTO createOrModifyCourseTeacher(CourseTeacherDTO courseTeacherDTO,Long companyId);


    /**
     * 根据课程信息id查询课程教师信息
     * @param companyId 机构id
     * @param id 课程基本信息id
     * @return 返回数据
     */
    List<CourseTeacher> queryCourseTeacherById(Long id, Long companyId);
}
